package com.zksoft;

public class reflection {

	public static void main(String[] args) {

		caculator(10, 20, "plus");

	}

	public static int caculator(int a, int b, String option) {
		int result = 0;
		if (option.equals("plus")) {
			result = a + b;
		} else if (option.equals("multi")) {
			result = a * b;
		}

		return result;
	}

}
